let obj = { name: 1, age: 2, job: 3 }

let obj1 = { name: 22 }

console.log(
  Object.entries(obj).map(([key, val]) => {
    console.log(key, val)
  }));



console.log(Object.assign(obj, obj1));